//
//  CarViolationManager.h
//  EasyToo
//
//  Created by linshengqin on 13-9-9.
//
//

#import <Foundation/Foundation.h>
#import "ServerCommunicationDelegate.h"

@protocol CarViolationManagerDelegate <NSObject>
@optional

- (void)onSearchCarViolationFinish:(BOOL)isSuccess
                         Violation:(NSMutableArray*)violationInfoArray
                           PostFee:(NSString*)postFee;

- (void)onOrderViolationFinish:(BOOL)isSuccess
                          Tn:(NSString*)tn;

@end


@interface CarViolationManager : NSObject <ServerCommunicationDelegate>
@property (nonatomic, assign) id<CarViolationManagerDelegate> delegate;


+ (CarViolationManager*)shareManager;

- (void)searchViolation:(NSString*)vehicleNo
           VehicleColor:(NSString*)color
                 RackNo:(NSString*)rackNo
                EnginNo:(NSString*)enginNo;

-(void)orderViolation:(NSString*)vehicleNo
         VehicleColor:(NSString*)color
               RackNo:(NSString*)rackNo
              EnginNo:(NSString*)enginNo
             PostMode:(NSString*)postMode
              PostFee:(NSString*)postFee
             PhoneNum:(NSString*)phoneNum
          OrderDetail:(NSString*)orderDetail
          TotalAmount:(NSString*)totalAmount;
@end
